import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'

export default defineUniPages({
  globalStyle: {
    'navigationBarBackgroundColor': '@navBgColor',
    'navigationBarTextStyle': '@navTxtStyle',
    'navigationBarTitleText': 'uni-app 前端脚手架',
    'backgroundColor': '@bgColor',
    'backgroundTextStyle': '@bgTxtStyle',
    'backgroundColorTop': '@bgColorTop',
    'backgroundColorBottom': '@bgColorBottom',
    'navigationStyle': 'custom',
    'mp-alipay': {
      allowsBounceVertical: 'NO',
    },
  },
  tabBar: {
    color: '#000',
    selectedColor: '#007aff',
    backgroundColor: '#fff',
    borderStyle: 'black',
    list: [
      // 图标库：https://icon-sets.iconify.design/hugeicons
      // 激活颜色：#007aff
      // 首页：home-12、home-13
      // 商城：shopping-bag-03
      // AI助手：ai-chat-02、bubble-chat
      // 频道：battery-medium-01、battery-full
      // 我的：user-square
      {
        pagePath: 'pages/index/index',
        text: '首页',
        iconPath: '/static/tabbar/home.svg',
        selectedIconPath: '/static/tabbar/home-active.svg',
      },
      {
        pagePath: 'pages/market/index',
        text: '商城',
        iconPath: '/static/tabbar/market.svg',
        selectedIconPath: '/static/tabbar/market-active.svg',
      },
      {
        pagePath: 'pages/ai/index',
        text: 'AI助手',
        iconPath: '/static/tabbar/ai.svg',
        selectedIconPath: '/static/tabbar/ai-active.svg',
      },
      {
        pagePath: 'pages/channel/index',
        text: '频道',
        iconPath: '/static/tabbar/channel.svg',
        selectedIconPath: '/static/tabbar/channel-active.svg',
      },
      {
        pagePath: 'pages/mine/index',
        text: '我的',
        iconPath: '/static/tabbar/mine.svg',
        selectedIconPath: '/static/tabbar/mine-active.svg',
      },
    ],
  },
  subPackages: [],
})
